package com.unknownman.block.config;

import com.unknownman.block.job.InitTranSubscribeJob;
import com.unknownman.block.job.TokenErc20HourHoldJob;
import com.unknownman.block.job.TokenSwapJob;
import com.unknownman.block.job.TokenTransferJob;
import com.unknownman.block.rabbitmq.reciever.TestTopicReceiver;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 *
 */
@Configuration
@ConditionalOnProperty(prefix = "chain.subscribe", name = "enable", havingValue = "true")
public class SubscribeJobConfig {

    @Bean
    InitTranSubscribeJob initTranSubscribeJob() {
        return new InitTranSubscribeJob();
    }

    @Bean
    TokenTransferJob tokenTransferJob() {
        return new TokenTransferJob();
    }

    @Bean
    TokenSwapJob tokenSwapJob() {
        return new TokenSwapJob();
    }

    @Bean
    TokenErc20HourHoldJob tokenErc20HourHoldJob() {
        return new TokenErc20HourHoldJob();
    }
}
